 /*
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.davinci.freemarket.businessLayer.utils.writer;

import java.io.*;

public class FreeMarketDefaultWriter extends FreeMarketAbstractWriter{
	
	public FreeMarketDefaultWriter(String charset){
		super(charset);
	}

	public void prepare() throws IOException {
		
		byteOutPut = new ByteArrayOutputStream(100000);
		OutputStreamWriter bridge = new OutputStreamWriter(byteOutPut, charset);
		
		bridge.write(out.toString());
		bridge.flush();
		bridge.close();
		
		size = byteOutPut.size();
	}
}
